﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Pharmacy.Data;
using Pharmacy.Entities;
using System.Data.Common;
using System.Data.SqlClient;

public partial class Admin_Setting : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        DateTime fromdate = DateTime.Parse("01/01/2011");
        DateTime todate = DateTime.Parse("6/11/2011");
        DataSet ds = new DataSet();
        SqlCommand cmd = new SqlCommand();
        cmd.CommandType = CommandType.StoredProcedure;
        cmd.CommandText = "_Grn_GetByDate";
        cmd.Parameters.Add("@fromdate", SqlDbType.DateTime).Value = fromdate;
        cmd.Parameters.Add("@todate", SqlDbType.DateTime).Value = todate;
        ds =  DataRepository.Provider.ExecuteDataSet(cmd);
        DataTable ntable = ds.Tables["Table1"];
    }
}
